<?php
// +----------------------------------------------------------------------
// | sfadmin - Suifeng Administration
// +----------------------------------------------------------------------
// | Copyright (c) 2017-2020 http://suifeng.tech All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: suifeng <1787585212@qq.com>
// +----------------------------------------------------------------------

namespace suifeng\mvc\admin;

class AdminView
{
    public $template;

    public $tpl_vars = array();

    public function assign($key, $value = null) {
        if (is_array($key)) {
            $this->tpl_vars = array_merge($this->tpl_vars, $key);
        } else {
            $this->tpl_vars[$key] = $value;
        }
    }
}